package com.ugoodtech.mdcc.web.service;

/* Copyright (C) Ugoodtech, Inc - All Rights Reserved.
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 * Proprietary and confidential.
 * Written by Stone Shaw.
 */

import com.ugoodtech.mdcc.core.domain.QuestionPaper;
import com.ugoodtech.mdcc.core.exception.VStarException;
import io.swagger.annotations.ApiParam;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.RequestParam;

public interface QuestionPaperService {

    Page<QuestionPaper> queryQuestionPaper(@ApiParam("类型") QuestionPaper.QuestionPaperCategory category,
                                           Pageable pageable);
    
    QuestionPaper createQuestionPaper(@ApiParam("问卷名字") String name,
                                      @ApiParam("创建原因") @RequestParam String reason,
                                      @ApiParam("问卷分类") QuestionPaper.QuestionPaperCategory category,
                                      @ApiParam("版本号") String version) throws VStarException;

}
